<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Net4 Studio - fengmk2@gmail.com" />
<meta name="Robots" content="index,follow" />
{% block extrastyle %}{% endblock %}
<script type='text/javascript' src='/site_media/js/jquery.js'></script>
<script type='text/javascript'>

</script>
{% block extrahead %}{% endblock %}
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
<title>{% block title %}{% endblock %}</title>
</head>

<body>
<!-- wrap starts here -->
<div id="wrap">
		<!--header -->
		<div id="header">
			<h1 id="logo-text"><a href="/">Net4 Class Web</a></h1>		
			<p id="slogan">We are more than we are</p>
			<div id="header-links">
			<p>
				{% block nav-global %}
				<a href="/">回家</a> | 
				<a href="/total/">统计</a>
				{% if user.is_authenticated %}
				| Welcome back, <a href="/user/{{user.username}}">{{user.first_name}}{{user.last_name}}[{{user.username}}]</a>
				| <a href="/admin/logout">Logout</a>
				{% else%}
				| <a href="/admin">Login</a>
				{% endif %}
				{% endblock %}
			</p>
			</div>
		</div>
		<!-- content-wrap starts here -->
		<div id="content-wrap">
			<div id="main">
				{% block content %}
				
				{% endblock %}
				{% if sql_queries %}
				<div class='clear'>&nbsp;</div>
				<hr class='clear' />
				<h3>SQL excute in this Request</h3>
				<!-- debug: show the sql excute in this request -->
                {% for query in sql_queries %}<h3>Excute times: {{query.time}}</h3>
                <p>
                    <code>
                        {{query.sql}}
                    </code>
                </p>
                {% endfor %}<!-- debug ends here -->
				{% endif %}
			</div>
		
		<!-- content-wrap ends here -->	
		</div>
		{% block footer %}			
		<!--footer starts here-->
		<div id="footer">
			
			<p>
			&copy; 2008 <strong>Your Company</strong> | 
			Design by: <a href="http://www.styleshout.com/">styleshout</a> | 
			Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | 
			<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
			
   		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			
			<a href="/">Home</a>&nbsp;|&nbsp;
   		<a href="/sitemap">Sitemap</a>&nbsp;|&nbsp;
	   	<a href="/rss">RSS Feed</a>
   		</p>
				
		</div>
		{% endblock %}

<!-- wrap ends here -->
</div>
</body>
</html>